/ Assembly List / LJCNetCommon / HTMLBuilder / TableAttribs

Namespace - LJCNetCommon


Parameters
border - The border attribute.
cellSpacing - The cellspacing attribute
cellPadding - The cellpadding attribute
className - The class attribute.
id - The id attribute.

Returns

The common table attributes.

Syntax

C#
public Attributes TableAttribs(Int32 border = 1, Int32 cellSpacing = 0, Int32 cellPadding = 2, String className = null, String id = null)

Gets common table attributes.

Example

C#
// Root Method Begin
var textState = new TextState();

var hb = new HTMLBuilder(textState);

// Example Method:
var border = 1;
var cellspacing = 2;
var cellpadding = 3;
// Defaults: border = 1, cellspacing = 0, cellpadding = 2.
var attribs = hb.TableAttribs(border, cellspacing, cellpadding);

var result = hb.GetAttribs(attribs, textState);

// result:
// border="1" cellspacing="2" cellpadding="3"

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.